package cn.yanjr.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

import cn.yanjr.common.bean.BeanFactory;
import cn.yanjr.common.leancloud.AppLeanCloud;

/**
 * AppListener
 * @ClassName:  AppListener   
 * @Description:AppListener  
 * @author: yanjr big123@126.com
 * @date:   2020年4月9日 下午8:22:42   
 *     
 *
 */
@WebListener
public class AppListener implements ServletContextListener{

	@Override
	public void contextDestroyed(ServletContextEvent event) {
		// TODO Auto-generated method stub
		
	}

	/**
	 * 启动初始化
	 */
	@Override
	public void contextInitialized(ServletContextEvent event) {
		//Bean工厂初始化
		BeanFactory.init();
		//LeanCloud初始化
		AppLeanCloud.initialized();
	}

}
